package com.hoopchina.weibo.http;
import com.hoopchina.weibo.WeiboException;

/**
 * 
 * @author neusoft
 *
 */
public class AccessToken extends OAuthToken {
    private static final long serialVersionUID = -8344528374458826291L;
    private String screenName;
    AccessToken(Response res) throws WeiboException {
        this(res.asString());
    }

    // for test unit
    AccessToken(String str) {
        super(str);
        screenName = getParameter("screen_name");
    }

    public AccessToken(String token, String tokenSecret) {
        super(token, tokenSecret);
    }

    /**
     *
     * @return screen name
     * @since Weibo4J 1.2.0
     */

	public String getScreenName() {
		return screenName;
	}    
}
